<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>Hello React!</title>

    <script src="./static/standalone/babel.js"></script>
</head>
<body>

<div id="root"></div>

<script    type="module">

    import  QGuanRunApplication from "./static/start/qguan.js"
    import RootLoad from "./static/start/root/RootLoad.js";
    import Jsr from "./qbasics/pack/Jsr.js";
    import  AopFactory from "./static/start/AopFactory.js"
    import  jsrLoad from "./static/start/load/jsrLoad.js"
    import  AppRun from "./static/start/decorator/AppRun.js"
    import  DefaultLoad  from  "./static/start/load/DefaultLoad.js"
    import Preloading from "./static/start/load/Preloading.js";
    import SyncJsLoad from "./static/start/load/SyncJsLoad.js";




    let packtmp=  './lib/z_webDemo/\n' +
        'z_webDemo,application.config,preloading.config,runJsr';
    let packList=packtmp.split("\n");
    let patmp0=packList[0].split(",")
    let patmp1=packList[1].split(",")

    const inBrowser = typeof window !== 'undefined'
    new QGuanRunApplication()

    let jsr=new Jsr();
    let   root =     RootLoad(inBrowser,patmp0[0]);
    root.then((root1)=>{
        qguan('appRun',AppRun,null,"save");
        qguan('root',root1,null,"save");
        qguan('jsr',jsr,null,"save");
        let aopFactory=new AopFactory();

        qguan("aopFactory",aopFactory,null,"save");
        qguan('comm',patmp1,null,"save")
        qguan("jsrLoad",jsrLoad,null,"save");
        qguan("defaultLoad",DefaultLoad,null,"save")
        let syncjsLoad= new SyncJsLoad();
        qguan("syncJsLoad",syncjsLoad,null,"save")
        let preloading=new  Preloading();
        let res= preloading.run("qguan")

        res.then(()=>{
            qguan('qguan',"",'qguan','jsrLoad')

        })
        //   qguan(patmp1[0],patmp1[1],patmp1[2],patmp1[3])
    })


</script>
</body>
</html>